Loop: Loop: statements ---------- ----------
for n in range(1,6): for i in range(1,10): print(i, end=' ') print()
123456789 123456789 123456789 123456789 123456789
for n in range(1,5): for i in range(8,-1,-1): print(i, end=' ') print()
876543210 876543210 876543210 876543210
for n in range(1,6): for i in range(1,10): print(i, end=' ') for i in range(9,0,-1): print(i, end=' ') print()
123456789987654321 123456789987654321 123456789987654321 123456789987654321 123456789987654321
for n in range(10,5,-1): for i in range(1,n): print(i, end=' ') print()
123456789 12345678 1234567 123456 12345
for n in range(5,11): for i in range(1,n): print(i, end=' ') print()
1234 12345 123456 1234567 12345678 123456789